Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Name matches at the beginning of search. #8085

Merged
merged 2 commits into from
Sep 30, 2024
Merged

Conversation

isoos
Copy link
Collaborator

@isoos isoos commented Sep 27, 2024

Fixes #7938
image

final singular = matches.length == 1;
final namePluralized = singular ? 'name' : 'names';
return d.p(children: [
d.b(text: 'Matching package $namePluralized: '),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we detect if the match is exact, and in that case write 'Exact package name match:'

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

@sigurdm
Copy link
Contributor

sigurdm commented Sep 30, 2024

I'd like the message to be more specific when applicable. But I really like this!

@isoos isoos merged commit 36f5179 into dart-lang:master Sep 30, 2024
32 checks passed
@isoos isoos deleted the search-name branch September 30, 2024 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

An exact match with the package name should be shown first
3 participants